package com.heihx.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.io.Resource;
import org.springframework.stereotype.Component;

import java.time.Duration;

@Data
@ConfigurationProperties(prefix = "takeaway.jwt")
public class JwtProperties {
    private String adminSecretKey;
    private String adminTokenName;
    private String userSecretKey;
    private String userTokenName;
    private Duration tokenTTL = Duration.ofMinutes(120);
}
